package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ScExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ScExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andScnoIsNull() {
            addCriterion("scno is null");
            return (Criteria) this;
        }

        public Criteria andScnoIsNotNull() {
            addCriterion("scno is not null");
            return (Criteria) this;
        }

        public Criteria andScnoEqualTo(Integer value) {
            addCriterion("scno =", value, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoNotEqualTo(Integer value) {
            addCriterion("scno <>", value, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoGreaterThan(Integer value) {
            addCriterion("scno >", value, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("scno >=", value, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoLessThan(Integer value) {
            addCriterion("scno <", value, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoLessThanOrEqualTo(Integer value) {
            addCriterion("scno <=", value, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoIn(List<Integer> values) {
            addCriterion("scno in", values, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoNotIn(List<Integer> values) {
            addCriterion("scno not in", values, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoBetween(Integer value1, Integer value2) {
            addCriterion("scno between", value1, value2, "scno");
            return (Criteria) this;
        }

        public Criteria andScnoNotBetween(Integer value1, Integer value2) {
            addCriterion("scno not between", value1, value2, "scno");
            return (Criteria) this;
        }

        public Criteria andSnoIsNull() {
            addCriterion("sno is null");
            return (Criteria) this;
        }

        public Criteria andSnoIsNotNull() {
            addCriterion("sno is not null");
            return (Criteria) this;
        }

        public Criteria andSnoEqualTo(String value) {
            addCriterion("sno =", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoNotEqualTo(String value) {
            addCriterion("sno <>", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoGreaterThan(String value) {
            addCriterion("sno >", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoGreaterThanOrEqualTo(String value) {
            addCriterion("sno >=", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoLessThan(String value) {
            addCriterion("sno <", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoLessThanOrEqualTo(String value) {
            addCriterion("sno <=", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoLike(String value) {
            addCriterion("sno like", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoNotLike(String value) {
            addCriterion("sno not like", value, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoIn(List<String> values) {
            addCriterion("sno in", values, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoNotIn(List<String> values) {
            addCriterion("sno not in", values, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoBetween(String value1, String value2) {
            addCriterion("sno between", value1, value2, "sno");
            return (Criteria) this;
        }

        public Criteria andSnoNotBetween(String value1, String value2) {
            addCriterion("sno not between", value1, value2, "sno");
            return (Criteria) this;
        }

        public Criteria andCnoIsNull() {
            addCriterion("cno is null");
            return (Criteria) this;
        }

        public Criteria andCnoIsNotNull() {
            addCriterion("cno is not null");
            return (Criteria) this;
        }

        public Criteria andCnoEqualTo(String value) {
            addCriterion("cno =", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotEqualTo(String value) {
            addCriterion("cno <>", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThan(String value) {
            addCriterion("cno >", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThanOrEqualTo(String value) {
            addCriterion("cno >=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThan(String value) {
            addCriterion("cno <", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThanOrEqualTo(String value) {
            addCriterion("cno <=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLike(String value) {
            addCriterion("cno like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotLike(String value) {
            addCriterion("cno not like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoIn(List<String> values) {
            addCriterion("cno in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotIn(List<String> values) {
            addCriterion("cno not in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoBetween(String value1, String value2) {
            addCriterion("cno between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotBetween(String value1, String value2) {
            addCriterion("cno not between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andTnoIsNull() {
            addCriterion("tno is null");
            return (Criteria) this;
        }

        public Criteria andTnoIsNotNull() {
            addCriterion("tno is not null");
            return (Criteria) this;
        }

        public Criteria andTnoEqualTo(String value) {
            addCriterion("tno =", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotEqualTo(String value) {
            addCriterion("tno <>", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoGreaterThan(String value) {
            addCriterion("tno >", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoGreaterThanOrEqualTo(String value) {
            addCriterion("tno >=", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoLessThan(String value) {
            addCriterion("tno <", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoLessThanOrEqualTo(String value) {
            addCriterion("tno <=", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoLike(String value) {
            addCriterion("tno like", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotLike(String value) {
            addCriterion("tno not like", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoIn(List<String> values) {
            addCriterion("tno in", values, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotIn(List<String> values) {
            addCriterion("tno not in", values, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoBetween(String value1, String value2) {
            addCriterion("tno between", value1, value2, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotBetween(String value1, String value2) {
            addCriterion("tno not between", value1, value2, "tno");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andExamtimeIsNull() {
            addCriterion("examtime is null");
            return (Criteria) this;
        }

        public Criteria andExamtimeIsNotNull() {
            addCriterion("examtime is not null");
            return (Criteria) this;
        }

        public Criteria andExamtimeEqualTo(Date value) {
            addCriterion("examtime =", value, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeNotEqualTo(Date value) {
            addCriterion("examtime <>", value, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeGreaterThan(Date value) {
            addCriterion("examtime >", value, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("examtime >=", value, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeLessThan(Date value) {
            addCriterion("examtime <", value, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeLessThanOrEqualTo(Date value) {
            addCriterion("examtime <=", value, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeIn(List<Date> values) {
            addCriterion("examtime in", values, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeNotIn(List<Date> values) {
            addCriterion("examtime not in", values, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeBetween(Date value1, Date value2) {
            addCriterion("examtime between", value1, value2, "examtime");
            return (Criteria) this;
        }

        public Criteria andExamtimeNotBetween(Date value1, Date value2) {
            addCriterion("examtime not between", value1, value2, "examtime");
            return (Criteria) this;
        }

        public Criteria andExampointIsNull() {
            addCriterion("exampoint is null");
            return (Criteria) this;
        }

        public Criteria andExampointIsNotNull() {
            addCriterion("exampoint is not null");
            return (Criteria) this;
        }

        public Criteria andExampointEqualTo(String value) {
            addCriterion("exampoint =", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointNotEqualTo(String value) {
            addCriterion("exampoint <>", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointGreaterThan(String value) {
            addCriterion("exampoint >", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointGreaterThanOrEqualTo(String value) {
            addCriterion("exampoint >=", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointLessThan(String value) {
            addCriterion("exampoint <", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointLessThanOrEqualTo(String value) {
            addCriterion("exampoint <=", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointLike(String value) {
            addCriterion("exampoint like", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointNotLike(String value) {
            addCriterion("exampoint not like", value, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointIn(List<String> values) {
            addCriterion("exampoint in", values, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointNotIn(List<String> values) {
            addCriterion("exampoint not in", values, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointBetween(String value1, String value2) {
            addCriterion("exampoint between", value1, value2, "exampoint");
            return (Criteria) this;
        }

        public Criteria andExampointNotBetween(String value1, String value2) {
            addCriterion("exampoint not between", value1, value2, "exampoint");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNull() {
            addCriterion("addtime is null");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNotNull() {
            addCriterion("addtime is not null");
            return (Criteria) this;
        }

        public Criteria andAddtimeEqualTo(Date value) {
            addCriterion("addtime =", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotEqualTo(Date value) {
            addCriterion("addtime <>", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThan(Date value) {
            addCriterion("addtime >", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("addtime >=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThan(Date value) {
            addCriterion("addtime <", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThanOrEqualTo(Date value) {
            addCriterion("addtime <=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeIn(List<Date> values) {
            addCriterion("addtime in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotIn(List<Date> values) {
            addCriterion("addtime not in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeBetween(Date value1, Date value2) {
            addCriterion("addtime between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotBetween(Date value1, Date value2) {
            addCriterion("addtime not between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andScstateIsNull() {
            addCriterion("scstate is null");
            return (Criteria) this;
        }

        public Criteria andScstateIsNotNull() {
            addCriterion("scstate is not null");
            return (Criteria) this;
        }

        public Criteria andScstateEqualTo(Integer value) {
            addCriterion("scstate =", value, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateNotEqualTo(Integer value) {
            addCriterion("scstate <>", value, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateGreaterThan(Integer value) {
            addCriterion("scstate >", value, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("scstate >=", value, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateLessThan(Integer value) {
            addCriterion("scstate <", value, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateLessThanOrEqualTo(Integer value) {
            addCriterion("scstate <=", value, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateIn(List<Integer> values) {
            addCriterion("scstate in", values, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateNotIn(List<Integer> values) {
            addCriterion("scstate not in", values, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateBetween(Integer value1, Integer value2) {
            addCriterion("scstate between", value1, value2, "scstate");
            return (Criteria) this;
        }

        public Criteria andScstateNotBetween(Integer value1, Integer value2) {
            addCriterion("scstate not between", value1, value2, "scstate");
            return (Criteria) this;
        }

        public Criteria andAdnoIsNull() {
            addCriterion("adno is null");
            return (Criteria) this;
        }

        public Criteria andAdnoIsNotNull() {
            addCriterion("adno is not null");
            return (Criteria) this;
        }

        public Criteria andAdnoEqualTo(String value) {
            addCriterion("adno =", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotEqualTo(String value) {
            addCriterion("adno <>", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoGreaterThan(String value) {
            addCriterion("adno >", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoGreaterThanOrEqualTo(String value) {
            addCriterion("adno >=", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLessThan(String value) {
            addCriterion("adno <", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLessThanOrEqualTo(String value) {
            addCriterion("adno <=", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLike(String value) {
            addCriterion("adno like", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotLike(String value) {
            addCriterion("adno not like", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoIn(List<String> values) {
            addCriterion("adno in", values, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotIn(List<String> values) {
            addCriterion("adno not in", values, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoBetween(String value1, String value2) {
            addCriterion("adno between", value1, value2, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotBetween(String value1, String value2) {
            addCriterion("adno not between", value1, value2, "adno");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}